home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
thinkref
/
archive
/
THINKPascalUH2.1.sea
/
THINKPas Univ Hdr 2.1
/
Interfaces
/
ConnectionTools.p
< prev
next >
Wrap
Text File
|
1995-09-14
|
3KB
|
127 lines
{ Converted with MPW2TPas Tuesday, September 12, 1995 5:40:21 PM }
{}
{ File: ConnectionTools.p}
{ }
{ Contains: Communications Toolbox Connection Tools Interfaces.}
{ }
{ Version: Technology: System 7.5}
{ Package: Universal Interfaces 2.1 in “MPW Latest” on ETO #18}
{ }
{ Copyright: © 1984-1995 by Apple Computer, Inc.}
{ All rights reserved.}
{ }
{ Bugs?: If you find a problem with this file, use the Apple Bug Reporter}
{ stack. Include the file and version information (from above)}
{ in the problem description and send to:}
{ Internet: apple.bugs@applelink.apple.com}
{ AppleLink: APPLE.BUGS}
{ }
{}
unit ConnectionTools;
interface
{$IFC UNDEFINED __CONNECTIONTOOLS__}
{$SETC __CONNECTIONTOOLS__ := 1}
uses
ConditionalMacros, Types, Quickdraw, Controls, Windows, Dialogs, Connections;
{ $PUSH}
{ $ALIGN MAC68K}
{ $LibExport+}
const
{ messages for DefProc }
cmInitMsg = 0;
cmDisposeMsg = 1;
cmSuspendMsg = 2;
cmResumeMsg = 3;
cmMenuMsg = 4;
cmEventMsg = 5;
cmActivateMsg = 6;
cmDeactivateMsg = 7;
cmIdleMsg = 50;
cmResetMsg = 51;
cmAbortMsg = 52;
cmReadMsg = 100;
cmWriteMsg = 101;
cmStatusMsg = 102;
cmListenMsg = 103;
cmAcceptMsg = 104;
cmCloseMsg = 105;
cmOpenMsg = 106;
cmBreakMsg = 107;
cmIOKillMsg = 108;
cmEnvironsMsg = 109;
{ new connection tool messages for ctb 1.1 }
cmNewIOPBMsg = 110;
cmDisposeIOPBMsg = 111;
cmGetErrorStringMsg = 112;
cmPBReadMsg = 113;
cmPBWriteMsg = 114;
cmPBIOKillMsg = 115;
{ messages for validate DefProc }
cmValidateMsg = 0;
cmDefaultMsg = 1;
{ messages for Setup DefProc }
cmSpreflightMsg = 0;
cmSsetupMsg = 1;
cmSitemMsg = 2;
cmSfilterMsg = 3;
cmScleanupMsg = 4;
{ messages for scripting defProc }
cmMgetMsg = 0;
cmMsetMsg = 1;
{ messages for localization defProc }
cmL2English = 0;
cmL2Intl = 1;
{ private data constants }
cdefType = 'cdef'; { main connection definition procedure }
cvalType = 'cval'; { validation definition procedure }
csetType = 'cset'; { connection setup definition procedure }
clocType = 'cloc'; { connection configuration localization defProc }
cscrType = 'cscr'; { connection scripting defProc interfaces }
cbndType = 'cbnd'; { bundle type for connection }
cverType = 'vers';
type
CMDataBuffer = record
thePtr: Ptr;
count: LONGINT;
channel: CMChannel;
flags: CMFlags;
end;
CMDataBufferPtr = ^CMDataBuffer;
CMCompletorRecord = record
async: BOOLEAN;
completionRoutine: ConnectionCompletionUPP;
end;
CMCompletorPtr = ^CMCompletorRecord;
{ Private Data Structure }
CMSetupStruct = record
theDialog: DialogPtr;
count: INTEGER;
theConfig: Ptr;
procID: INTEGER; { procID of the tool }
end;
CMSetupPtr = ^CMSetupStruct;
{ $ALIGN RESET}
{ $POP}
{$ENDC}
{__CONNECTIONTOOLS__}
implementation
end.